Skip to content

IQuaternaryDictionary interface

Defined in

Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Collections.IQuaternaryDictionary<T1, T2> Modifiers: public abstract

Summary

        Represents a dictionary that supports standard key-value storage as well as additional value-based indexing and
        bulk operations.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class IQuaternaryDictionary~T1,T2~
class IDictionary~TKey, TValue~ {
    <>
}
IDictionary~TKey, TValue~ <|.. IQuaternaryDictionary~T1,T2~
class ICollection~KeyValuePair~TKey, TValue~~ {
    <>
}
ICollection~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class IEnumerable~KeyValuePair~TKey, TValue~~ {
    <>
}
IEnumerable~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class IEnumerable {
    <>
}
IEnumerable <|.. IQuaternaryDictionary~T1,T2~
class IReactiveSource~KeyValuePair~TKey, TValue~~ {
    <>
}
IReactiveSource~KeyValuePair~TKey, TValue~~ <|.. IQuaternaryDictionary~T1,T2~
class INotifyCollectionChanged {
    <>
}
INotifyCollectionChanged <|.. IQuaternaryDictionary~T1,T2~
class IDisposable {
    <>
}
IDisposable <|.. IQuaternaryDictionary~T1,T2~

Implements: IDictionary (opens in a new tab), ICollection> (opens in a new tab), IEnumerable> (opens in a new tab), IEnumerable (opens in a new tab), IReactiveSource>, INotifyCollectionChanged (opens in a new tab), IDisposable (opens in a new tab)

Remarks

In addition to the standard IDictionary functionality, IQuaternaryDictionary provides methods for adding or updating entries, adding multiple entries at once, and creating named indexes on value properties for efficient lookups. This interface is intended for scenarios where advanced indexing and bulk operations are required beyond those provided by typical dictionary implementations.

Properties

NameSummary
CountGets the number of key/value pairs contained in the dictionary.
IsReadOnlyGets a value indicating whether the dictionary is read-only.

Methods

NameSummary
GetEnumeratorReturns an enumerator that iterates through the dictionary.
AddOrUpdateAdds a new element with the specified key and value, or updates the value if the key already exists.
AddRangeAdds the elements of the specified collection to the current collection.
AddValueIndexAdds a value index with the specified name, using the provided key selector to generate index keys for values.
TryAddAttempts to add the specified key and value to the collection.
LookupLooks up the value associated with the specified key.
RemoveKeysRemoves all entries with keys in the specified collection from the dictionary.
RemoveManyRemoves all entries that match the specified predicate from the dictionary.
EditPerforms a batch edit operation on the dictionary, ensuring only a single change notification is emitted.
GetValuesBySecondaryIndexRetrieves all values that match the specified key in the given secondary value index.
ValueMatchesSecondaryIndexDetermines whether the specified value matches the given key in the specified secondary index.